package com.itheima.service;

import com.itheima.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {

    List<Book>selectAll();

    Book selectById(int id);

    boolean add(Book book);

    boolean deleteById(int id);

    boolean update(Book book);
}
